<?php
//向上取整
$a="1.1";
echo ceil($a);

//向下取整
$b=  1.9;
echo floor($b);